#include "task.hpp"
#include "ThreadPool.hpp"

using namespace ThreadPoolModule;


int main()
{
    LOG_CONSOLE;
    
    ThreadPool<task_t>* instance = ThreadPool<task_t>::getInstance();
    char c;
    int cnt = 5;
    while (cnt)
    {
        // std::cin >> c;
        ThreadPool<task_t>::getInstance()->Enqueue(task);
        cnt--;
        sleep(1);
    }
    
    ThreadPool<task_t>::getInstance()->Stop();
    ThreadPool<task_t>::getInstance()->End();
    return 0;
}
